﻿﻿//======================================================================
//
//        Copyright : Zhengzhou Strawberry Computer Technology Co.,LTD.
//        All rights reserved
//        
//        Application:NFinal MVC framework
//        Filename :IndexController.cs
//        Description :首页控制器
//
//        created by Lucas at  2015-6-30`
//     
//        WebSite:http://www.nfinal.com
//
//======================================================================
using System;
using System.Collections.Generic;
using System.Web;
namespace BlackHtml5.WebSite.Controllers
{
    public class IndexController: Controller
    {
        public void Index()
        {
            var con = Models.Common.OpenConnection();
            Dictionary<string, string> global = GetGlobal(con);
            var articleNews = con.QueryTop("select * from article where category_id=1",5);
            var articleCase = con.QueryTop("select * from article where category_id=2",3);
            con.Close();
            View("Index.aspx");
        }
    }
}